<div class="modal-header" id="scope">
	<h3 class="modal-title" ng-if="param.type == 'insert'">新增</h3>
	<h3 class="modal-title" ng-if="param.type == 'update'">修改</h3>
</div>
<div class="modal-body">
	<form name="myForm" class="form-horizontal form-validation">
		<div class="panel panel-default">
			<div class="panel-body">
				<div class="form-group">
					<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>广告标题：</label>
					<div class="col-sm-7">
						<input type="text" class="form-control" placeholder="标题"
							ng-model="param.data.title" required />
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>跳转连接：</label>
					<div class="col-sm-7">
						<input type="text" class="form-control" placeholder="跳转连接"
							ng-model="param.data.jumpto" required />
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>所属模块：</label>
					<div class="col-sm-7">
						<ui-select ng-model="dplist.selected" theme="bootstrap">
						<ui-select-match placeholder="所属模块">{{$select.selected.name}}</ui-select-match>
						<ui-select-choices
							repeat="ads in dplist | propsFilter:{name: $select.search}">
						<span ng-bind-html="ads.name | highlight: $select.search"></span>
						</ui-select-choices> </ui-select>
					</div>
				</div>
			</div>
				<div class="form-group">
					<label class="col-md-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>图片上传：</label>
					<div class="col-md-4" style="margin-left: 9px">
						<input type="file" class="form-control" placeholder="选择图片文件"
							ng-value="fileToUpload" value="{{fileToUpload}}"
							file-model="fileToUpload" set-file-data="fileToUpload = value;">
					</div>
				</div>
				<div class="form-group" >
				    <label class="col-sm-3 control-label">图片上传提示：</label>
				    <p class="col-sm-7" style="margin-top: 7px;margin-left: 10px">请保证上传图片的大小为750X194，图片文件小于50KB！</p>
				</div>
				<div class="form-group" ng-show="flag">
					<label class="col-md-3 control-label">当前使用图片预览：</label>
					<div class="col-md-4">
						<div class="bg-white wrapper-sm b-a">
							<div class="bg-light">
								<img ng-src="{{param.data.imageUrl}}" style="width: 100%;height: 100%"/>
							</div>
						</div>
					</div>
				</div>
			<footer class="panel-footer text-right bg-light lter" >
				<button class="btn btn-default" type="button" ng-click="cancel()">取消</button>
				<button type="submit" class="btn btn-success" ng-click="ok()">提交</button>
			</footer>
		</div>
	</form>
</div>